package com.test.activeMq.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;

import javax.jms.Queue;

/**
 * @program: spring-cloud-demo
 * @description: activeMq配置
 * @author: lyr
 * @create: 2018-06-04 10:39
 **/
@Configuration
@EnableJms
public class ActiveMqConfig {
    @Bean
    public Queue queue() {
        return new ActiveMQQueue("sample.queue");
    }
}
